<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
<div id="root">
    <h1>插值语法</h1>
    <h3>你好，{{name}}</h3>
    <hr>
    <h1>指令语法</h1>
    <a v-bind:href="link.url" target="_blank" v-bind:x="link.hello">{{link.name}}</a>
    <a :href="link.url" target="_blank" :x="link.hello">{{link.name}}</a>
</div>
<script type="text/javascript">
    Vue.config.productionTip = false;
    new Vue({
        el: '#root',
        data: {
            name: "Jack",
            link:{
                name:"百度",
                url:'https://www.baidu.com',
                hello:"你好"
            }
        }
    });
</script>
</body>
</html>